package cn.dujc.superkid.bean;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * @author du
 * date 2018/8/4 下午12:36
 */
public class ExaminationMessageListEntity implements Parcelable {
    /**
     * mid : 535
     * posttime : 1497237244
     * content : <p>试卷第10题，小郭的列式是9+5+9+5+9+5+3，我一开始没明白，后来他解释给我听，发现孩子有另一个思路，很开心！</p><p><br/></p>
     * answer_teacher_id : 3
     * answer_posttime : 1497242803
     * answer_content : <p>亲爱的家长，孩子的思路完全是ok的呢，他的意思应该是按折3只，休息下，再折3只，再休息下，再折3只，再休息下，然后再折一只这样的一个思路，然后把所需要的时间进行想加。非常棒，值得鼓励！</p>
     * status : 2
     * teacher_name : 郑怡婷
     * username : 郭新然
     */

    private String mid;//留言用户id
    private String posttime;//留言时间
    private String content;//留言内容
    private String answer_teacher_id;//留言处理老师id
    private String answer_posttime;//处理时间
    private String answer_content;//留言处理内容
    private String status;//留言处理状态(1-未处理，2-已处理)
    private String teacher_name;//留言处理老师姓名
    private String username;//留言用户姓名

    /**
     * avatar : http://api.niuwaketang.com/public/avatar/avatar.png
     */
    private String avatar;

    public String getMid() { return mid;}

    public void setMid(String mid) { this.mid = mid;}

    public String getPosttime() { return posttime;}

    public void setPosttime(String posttime) { this.posttime = posttime;}

    public String getContent() { return content;}

    public void setContent(String content) { this.content = content;}

    public String getAnswer_teacher_id() { return answer_teacher_id;}

    public void setAnswer_teacher_id(String answer_teacher_id) { this.answer_teacher_id = answer_teacher_id;}

    public String getAnswer_posttime() { return answer_posttime;}

    public void setAnswer_posttime(String answer_posttime) { this.answer_posttime = answer_posttime;}

    public String getAnswer_content() { return answer_content;}

    public void setAnswer_content(String answer_content) { this.answer_content = answer_content;}

    public String getStatus() { return status;}

    public void setStatus(String status) { this.status = status;}

    public String getTeacher_name() { return teacher_name;}

    public void setTeacher_name(String teacher_name) { this.teacher_name = teacher_name;}

    public String getUsername() { return username;}

    public void setUsername(String username) { this.username = username;}

    public ExaminationMessageListEntity() {}

    public String getAvatar() { return avatar;}

    public void setAvatar(String avatar) { this.avatar = avatar;}

    @Override
    public int describeContents() { return 0; }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.mid);
        dest.writeString(this.posttime);
        dest.writeString(this.content);
        dest.writeString(this.answer_teacher_id);
        dest.writeString(this.answer_posttime);
        dest.writeString(this.answer_content);
        dest.writeString(this.status);
        dest.writeString(this.teacher_name);
        dest.writeString(this.username);
        dest.writeString(this.avatar);
    }

    protected ExaminationMessageListEntity(Parcel in) {
        this.mid = in.readString();
        this.posttime = in.readString();
        this.content = in.readString();
        this.answer_teacher_id = in.readString();
        this.answer_posttime = in.readString();
        this.answer_content = in.readString();
        this.status = in.readString();
        this.teacher_name = in.readString();
        this.username = in.readString();
        this.avatar = in.readString();
    }

    public static final Creator<ExaminationMessageListEntity> CREATOR = new Creator<ExaminationMessageListEntity>() {
        @Override
        public ExaminationMessageListEntity createFromParcel(Parcel source) {return new ExaminationMessageListEntity(source);}

        @Override
        public ExaminationMessageListEntity[] newArray(int size) {return new ExaminationMessageListEntity[size];}
    };
}
